Clarify exists() function: property existence only, not graph patterns#397
Open
Clarify exists() function: property existence only, not graph patterns#397
Conversation
…raph patterns Co-authored-by: gkorland <753206+gkorland@users.noreply.github.com> Agent-Logs-Url: https://github.com/FalkorDB/docs/sessions/ed50614f-198b-49bd-80b3-5173ee41bbaf
Copilot
AI
changed the title
[WIP] Update documentation to clarify exists(pattern) function limitations
Clarify exists() function: property existence only, not graph patterns
Mar 21, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the Cypher functions reference to accurately document FalkorDB’s exists() predicate as a property-existence check (not an arbitrary graph pattern existence predicate), and guides users to the correct alternative for graph-pattern filtering.
Changes:
- Adjusted the documented signature from
exists(_pattern_)toexists(_entity.property_). - Updated the description to clarify it checks for property existence on nodes/relationships.
- Added a note that graph patterns are unsupported in
exists(), linking to FalkorDB#1315 and pointing toWHEREpattern predicates.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
exists(pattern)docs implied arbitrary graph patterns are supported. In practice, only property existence checks work — e.g.exists(n.prop). Passing relationship patterns likeexists((n)-[]-())errors out.exists(_pattern_)toexists(_entity.property_)to reflect actual behaviorWHEREas the alternativeOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.